version: '1.0.{build}'

image: Visual Studio 2019

init:
  - vcpkg install sdl2:x64-windows
  - vcpkg integrate install

platform:
  - x64
 
configuration:
  - Debug

before_build:
  - cmake -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 16 2019" -A x64 01-basic-game-dev/01-1-hello-world/
  # next command will bild every tutorial it is too much and very slow. Let only first one simple and fast test.
  #- cmake -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -G "Visual Studio 16 2019" -A x64 class-01-basic-game-dev

build:
  project: $(APPVEYOR_BUILD_FOLDER)\01-1-hello-world.sln

test_script:
  - '%APPVEYOR_BUILD_FOLDER%\%CONFIGURATION%\01-1-hello-world.exe'

cache: c:\tools\vcpkg\installed\
